{include file="public/header" /}





<div class="page">
    <form id="brand_form" method="post" name="form1" enctype="multipart/form-data">
        <table class="ds-default-table">
            <tbody>
            <tr class="noborder">

            </tr>
            <tr class="noborder">
                <td class="required w150"><label class="validation" style="width:200px" >{$Think.lang.question_index_category}:</label></td>
                <td class="vatop rowform" style="width: 90%" >
                    {if isset($model)}
                    <select style="width:200px;" name="gc_id1" id="gc_id1">
                        <option value="0" {$model.gc_id1 == 0 ? 'selected' : ''}>{$Think.lang.ds_please_choose}...</option>
                        {notempty name="class_list"}
                        {foreach name="class_list" item="v"}
                        <option {$model->gc_id1 == $v.gc_id ? 'selected' : ''}  value="{$v.gc_id}">{$v.gc_name}</option>
                        {/foreach}
                        {/notempty}
                    </select>
                    {else}
                    <select style="width:200px;" name="gc_id1" id="gc_id1">
                        <option value="0">{$Think.lang.ds_please_choose}...</option>
                        {notempty name="class_list"}
                        {foreach name="class_list" item="v"}
                        <option value="{$v.gc_id}">{$v.gc_name}</option>
                        {/foreach}
                        {/notempty}
                    </select>
                    {/if}
                    <select style="width:200px;" name="gc_id2" id="gc_id2">

                    </select>
                    <select style="width:200px;" name="gc_id3" id="gc_id3">

                    </select>

                </td>
                <td class="vatop tips"></td>
            </tr>

            <tr class="noborder">
                <td class="required"><label class="validation">问题描述:</label></td>
                <td class="vatop rowform"><textarea type="text" name="title" id="title" class="txt" style="height:60px;">{$model->title | default=''}</textarea></td>
                <td class="vatop tips"></td>
            </tr>
            <tr class="noborder">
                <td class="required"><label class="validation">新增选项:</label></td>
                <td class="vatop rowform">
                    <textarea type="text" rows="4" id="option" class="txt" style="height:60px;width:240px;"></textarea>
                    <input type="hidden" name="option" id="option-hidden" value="{$model->option_id | default = ''}">
                    <button id="add-option" type="button" class="btn btn-small layui-btn-danger">新增选项</button>
                </td>
                <td class="vatop tips"></td>
            </tr>

            </tbody>
            <tfoot>
            <tr class="tfoot">
                <td colspan="15" ><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
            </tr>
            </tfoot>
        </table>
    </form>
</div>
<script src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js"></script>
<script>

</script>